package beta;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

public class Screen 
{
    // STAŁE OKREŚLAJĄCE KODY PRZYCISKÓW ---------------------------------------
    public static final int LEFT_KEY = -3;
    public static final int RIGHT_KEY = -4;
    public static final int UP_KEY = -1;
    public static final int DOWN_KEY = -2;
    public static final int FIRE_KEY = -5;
    
    public static final int LEFT_SOFTKEY = -6;
    public static final int RIGHT_SOFTKEY = -7;
    public static final int CLEAR_KEY = -8;
    
    public static final int NUM0_KEY = Canvas.KEY_NUM0;
    public static final int NUM1_KEY = Canvas.KEY_NUM1;
    public static final int NUM2_KEY = Canvas.KEY_NUM2;
    public static final int NUM3_KEY = Canvas.KEY_NUM3;
    public static final int NUM4_KEY = Canvas.KEY_NUM4;
    public static final int NUM5_KEY = Canvas.KEY_NUM5;
    public static final int NUM6_KEY = Canvas.KEY_NUM6;
    public static final int NUM7_KEY = Canvas.KEY_NUM7;
    public static final int NUM8_KEY = Canvas.KEY_NUM8;
    public static final int NUM9_KEY = Canvas.KEY_NUM9;
    
    public static final int POUND_KEY = Canvas.KEY_POUND;
    public static final int STAR_KEY = Canvas.KEY_STAR;
    // -------------------------------------------------------------------------
    
    private String title = "Title";
    
    private String leftMenu = "Left";
    private String rightMenu = "Right";
    
    public void setTitle(String newTitle)
    {
        title = newTitle;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public String getLeftMenu()
    {
        return leftMenu;
    }

    public void setLeftMenu(String leftMenu)
    {
        this.leftMenu = leftMenu;
    }

    public String getRightMenu()
    {
        return rightMenu;
    }

    public void setRightMenu(String rightMenu)
    {
        this.rightMenu = rightMenu;
    }
    
    void hideNotify()
    {
        
    }

    void showNotify()
    {
        
    }
    
    void onCancel()
    {
        
    }

    void onOK()
    {
        
    }
    
    void onKeyPressed(int key)
    {
        
    }

    void onKeyReleased(int key)
    {
        
    }
    
    void onKeyRepeated(int key)
    {
        
    }
    
    
    
    void paint(Graphics g, int width, int height)
    {
        ScreenManager.getCurrentTheme().drawSelectionBorder(g, width, height);
    }
}
